package org.darkforest.dao.redis;

import org.darkforest.model.Adv;

import java.util.List;

/**
 * Created by valentina on 2015/11/12.
 */
public interface AdvRedisDao {

    /**
     * 将广告列表写入redis
     * @param key
     * @param advList
     */
    public void addAdvList(String key, List<Adv> advList);

    /**
     * 根据key获取redis中存储的列表
     * @param key
     */
    public List<Adv> getAdvListByKey(String key);

    /**
     * 根据key删除列表
     * @param key
     */
    public void deleteByKey(String key);
}
